package com.liu.common.entity.enums;

public enum ResponseEnum {
    SUCCESS(200, "操作成功！"),
    Failed(500, "操作失败,请重试！"),
    ;

    /**
     * 状态码
     */
    public final Integer code;

    /**
     * 返回描述信息
     */
    public final String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
